package com.ken.springcloud;

import com.ken.myRule.KenRuleConfiguration;
import com.ken.springcloud.anno.RemarkInfo;
import com.ken.springcloud.enums.UsedComponent;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.netflix.ribbon.RibbonClient;

/**
 * <ul>
 * <li>Title: ConsumerDeptApplication_80</li>
 * <li>Description: TODO </li>
 * </ul>
 *
 * @author swc
 * @date 2021-08-26 11:40
 */
@RemarkInfo(usedComponent = {UsedComponent.Eureka,UsedComponent.Ribbon},remark = "ribbon作为负载均衡,config包下提供了简单的负载均衡的算法")
@SpringBootApplication
@EnableEurekaClient //服务端使用负载均衡 也需要带上EnableEurekaClient注解
@RibbonClient(name = "SPRINGCLOUD-PROVIDER-DEPT", configuration = KenRuleConfiguration.class)
public class ConsumerDeptApplication_80 {

    public static void main(String[] args) {
        SpringApplication.run(ConsumerDeptApplication_80.class,args);
    }
}
